package com.gdk.service.impl;

import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gdk.dao.ArticleDao;
import com.gdk.dao.CategoryDao;
import com.gdk.dao.LoginDao;
import com.gdk.dao.NavigationDao;
import com.gdk.service.ArticleService;
import com.gdk.service.CategoryService;
import com.gdk.service.LoginService;
import com.gdk.service.NavigationService;
import com.gdk.utils.Md5Utils;


/**
 * 分类业务处理
 * */
@Service("CategoryService")
public class CategoryServiceImpl implements CategoryService {
	@Autowired
    private CategoryDao categoryDao;

	 @Override
	public List<Map<String, Object>> selectAllCategory() {
		return categoryDao.selectAllCategory();
	}
	
	 @Override
	public int addCategory(Map<String, Object> map) {
		return categoryDao.addCategory(map);
	}
	@Override
	public Map<String, Object> selectCategoryDetails(Map<String, Object> map) {
		return categoryDao.selectCategoryDetails(map);
	}
	@Override
	public int updateCategoryDetails(Map<String, Object> map) {
		return categoryDao.updateCategoryDetails(map);
	}
}
